<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_quiz_result_answer_file".
 *
 * @property string $id
 * @property string $result_id
 * @property string $ques_id
 * @property string $image_uri 文件路径
 * @property string $name 文件名
 * @property string $mime 媒体类型
 * @property int $size 文件大小
 * @property string $type 文件类型
 * @property string $create_by
 * @property string $create_time
 * @property string $update_by
 * @property string $update_time
 * @property int $del_flag
 */
class TQuizResultAnswerFile extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_quiz_result_answer_file';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id'], 'required'],
            [['size', 'del_flag'], 'integer'],
            [['create_time', 'update_time'], 'safe'],
            [['id', 'result_id', 'ques_id', 'create_by', 'update_by'], 'string', 'max' => 36],
            [['image_uri', 'name', 'mime'], 'string', 'max' => 255],
            [['type'], 'string', 'max' => 64],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'result_id' => 'Result ID',
            'ques_id' => 'Ques ID',
            'image_uri' => 'Image Uri',
            'name' => 'Name',
            'mime' => 'Mime',
            'size' => 'Size',
            'type' => 'Type',
            'create_by' => 'Create By',
            'create_time' => 'Create Time',
            'update_by' => 'Update By',
            'update_time' => 'Update Time',
            'del_flag' => 'Del Flag',
        ];
    }
}
